import request from '@/utils/request'

export function getGroupPageInfos(data) {
  return request({
    url: '/group/getPageInfos',
    method: 'GET',
    params: data
  })
}

export function deleteGroup(groupId) {
  return request({
    url: '/group/deleteGroup',
    method: 'POST',
    params: { groupId: groupId }
  })
}

export function createOrUpdate(data) {
  return request({
    url: '/group/addOrUpdateGroup',
    method: 'POST',
    data: data
  })
}
